package com.quanta.wise.lite.server.demo.flow.component;

import com.quanta.wise.annotation.RuleComponent;
import com.quanta.wise.enums.ElNameEnum;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;


/**
 * @author hanhuafeng
 * @version V1.0
 * @description
 * @date 2023/7/18
 */
@LiteflowComponent("SwitchComponent")
@RuleComponent(flowCmpId = "SwitchComponent", cmpType = ElNameEnum.SWITCH, defaultText = "选择")
public class SwitchComponent extends NodeSwitchComponent {
    @Override
    public String processSwitch() throws Exception {
        System.out.println("Acomp executed!");
        return "w1";
    }
}
